import { serviceCreate } from '../utils/request'
import { merge } from 'axios/lib/utils'
const http = serviceCreate({
  // baseURL: '/dv',
  // 表单提交
  emulateJSON: true
})
// @config {headers, emulateJSON, loading, msg, errMsg, disableInterceptor}
const methods = {
    // 获取评论的更多回复
    getMoreReply (params, config) {
        params = merge({
            // 评论所属的内容id
            oid: '',
            // 评论所属的内容类型id
            type: '',
            // 评论id
            root: '',
            // 分页索引
            min_id: ''
        }, params || {})
        return http.get('/comment/more-reply', merge(config, { params }))
    }    
}

export default methods
